package com.faneui.transfer.gateway.model;

import io.swagger.annotations.ApiModelProperty;

public class OutputObjectBean<T> extends OutputBean {
	@ApiModelProperty(value = "返回对象数据", required = true)
	protected T data;

	public OutputObjectBean(int code, String msg) {

		super(code, msg);
	}

	public OutputObjectBean(int code, String msg, T data) {

		super(code, msg);
		this.data = data;
	}

	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}

	@Override
	public String toString() {
		return "OutputObjectBean [data=" + data + ", msg=" + msg + ", code=" + code + ", timestamp=" + timestamp + "]";
	}

}
